<?php
declare (strict_types=1);

use think\facade\Route;

/**
 * 后台管理(广告主)
 */
Route::group('advertiser', function () {
    //前缀
    $namespace = '\app\admin\controller\advertiser';

    //广告主列表
    Route::post('advertiserUpload$', $namespace . '\AdvertiserUser@imageUpload')->name('广告主图片上传');
    Route::get('advertiserUserList$', $namespace . '\AdvertiserUser@list')->name('广告主列表');
    Route::get('advertiserUserListAll$', $namespace . '\AdvertiserUser@listAll')->name('广告主全部用户列表');
    Route::put('advertiserUserEnable$', $namespace . '\AdvertiserUser@enable')->name('广告主禁用启用');
    Route::post('advertiserUserRecharge$', $namespace . '\AdvertiserUser@recharge')->name('广告主充值');
    Route::get('advertiserUserRechargeList$', $namespace . '\AdvertiserUser@rechargeList')->name('广告主充值记录');
    //广告主推广任务审核
    Route::get('advertiserTaskReviewList$', $namespace . '\AdvertiserTask@reviewList')->name('广告主推广任务待审核列表');
    Route::post('advertiserTaskReview$', $namespace . '\AdvertiserTask@taskReview')->name('广告主推广任务审核');
    //广告主推广任务列表
    Route::get('advertiserTaskList$', $namespace . '\AdvertiserTask@taskList')->name('广告主推广任务列表');
    Route::put('advertiserTaskEnable$', $namespace . '\AdvertiserTask@taskEnable')->name('广告主推广任务上下架');
    Route::get('taskSubscribeStatistics$', $namespace . '\AdvertiserTask@taskSubscribeStatistics')->name('广告主推广任务关注情况列表');
    //广告主推广任务排序
    Route::get('advertiserTaskSortList$', $namespace . '\AdvertiserTask@sortList')->name('广告主推广任务排序列表');
    Route::post('advertiserTaskSort$', $namespace . '\AdvertiserTask@taskSort')->name('广告主推广任务设置排序值');
    //广告主推广任务明细记录
    Route::get('advertiserTaskLog$', $namespace . '\AdvertiserTask@taskLog')->name('广告主推广任务明细记录');
    //页面广告位管理
    Route::get('advertiserPageList$', $namespace . '\AdvertiserPage@pageList')->name('页面广告位列表');
    Route::post('advertiserPageAdd$', $namespace . '\AdvertiserPage@pageAdd')->name('页面广告位添加');
    Route::put('advertiserPageEdit$', $namespace . '\AdvertiserPage@pageEdit')->name('页面广告位编辑');
    Route::delete('advertiserPageDel$', $namespace . '\AdvertiserPage@pageDel')->name('页面广告位删除');
    Route::put('advertiserPageStatus$', $namespace . '\AdvertiserPage@pageStatus')->name('页面广告位状态');
    //二次关注任务
    Route::get('advertiserSecondaryList$', $namespace . '\AdvertiserSecondary@pageList')->name('列表');
    Route::post('advertiserSecondaryAdd$', $namespace . '\AdvertiserSecondary@pageAdd')->name('添加');
    Route::put('advertiserSecondaryEdit$', $namespace . '\AdvertiserSecondary@pageEdit')->name('编辑');
    Route::delete('advertiserSecondaryDel$', $namespace . '\AdvertiserSecondary@pageDel')->name('删除');
    Route::put('advertiserSecondaryStatus$', $namespace . '\AdvertiserSecondary@pageStatus')->name('状态');
    //页面广告位授权广告主
    Route::get('advertiserPageAuthList$', $namespace . '\AdvertiserPage@pageAuthList')->name('页面广告位授权广告主列表');
    Route::post('advertiserPageAuthAdd$', $namespace . '\AdvertiserPage@pageAuthAdd')->name('页面广告位新增授权广告主');
    Route::put('advertiserPageAuthEdit$', $namespace . '\AdvertiserPage@pageAuthEdit')->name('页面广告位修改授权广告主');
    Route::delete('advertiserPageAuthDel$', $namespace . '\AdvertiserPage@pageAuthDel')->name('页面广告位删除授权广告主');
    //页面广告位任务审核
    Route::get('advertiserPageTaskReviewList$', $namespace . '\AdvertiserPage@pageReviewList')->name('页面广告位任务待审核列表');
    Route::post('advertiserPageTaskReview$', $namespace . '\AdvertiserPage@pageTaskReview')->name('页面广告位推广任务审核');
    //页面广告位任务列表
    Route::get('advertiserPageTaskList$', $namespace . '\AdvertiserPage@pageTaskList')->name('页面广告位任务列表');
    Route::put('advertiserPageTaskEnable$', $namespace . '\AdvertiserPage@pageTaskEnable')->name('页面广告位任务上下架');

    //聚合平台管理
    Route::get('advertiserThirdList$', $namespace . '\AdvertiserThird@thirdList')->name('聚合平台列表');
    Route::put('advertiserThirdEdit$', $namespace . '\AdvertiserThird@thirdEdit')->name('聚合平台编辑');
    Route::get('advertiserThirdStatistics$', $namespace . '\AdvertiserThird@thirdStatistics')->name('聚合平台统计');

})->middleware(middleware\AuthMiddleware::class, 'admin');






